package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.StorageSingleInventoryProduct;
import com.wing.cabinet.model.request.StorageSingleInventoryProductForm;
import com.wing.cabinet.model.response.*;

import java.util.List;
import java.util.Map;

/**
 * 暂存柜产品库存(单个柜子)-Service
 *
 * @author
 */
public interface StorageSingleInventoryProductService extends IService<StorageSingleInventoryProduct> {

    /**
     * 添加
     *
     * @param storageSingleInventoryProductForm
     * @return
     */
    int add(StorageSingleInventoryProductForm storageSingleInventoryProductForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<StorageSingleInventoryProductVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<StorageSingleInventoryProductVO> pageList4app(Page page, Map<String, Object> params);

    Page<StorageSingleInventoryProductVO> pageList(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    StorageSingleInventoryProductVO get4appById(Long id);

    /**
     * 在库统计导出
     * @param params
     * @return
     */
    List<StorageSingleInventoryProductVO> ecxportList(Map<String, Object> params);

    Page<StorageSingleInventoryProductVO> pageListStorageInventoryCabinet(Page page, Map<String, Object> params);

    Page<StorageSingleInventoryProductVO> getStorageSingleBySkuCodeAndBelongCabinet(Page page, Map<String, Object> params);

    Page<StorageSingleInventoryProductVO> getAllStorageSingleBySkuCodeAndBelongCabinet(Page page, Map<String, Object> params);

    List<SingleInventoryProductExportVO> inventoryProductExportList(Map<String, Object> params);

    List<KnifeCabinetProductExportVO> knifeCabinetProductExportVoEcxportList(Map<String, Object> params);
}
